package com.qfedu.smart_community.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName table_change_record
 */
public class TableChangeRecord implements Serializable {
    /**
     * 序号
     */
    private Integer id;

    /**
     * 房间号
     */
    private Integer roomId;

    /**
     * 抄表管理id
     */
    private Integer meterManagerId;

    /**
     * 新表号
     */
    private String newTableNumber;

    /**
     * 新表起数
     */
    private Double newTableStart;

    /**
     * 安装人员
     */
    private String installPerson;

    /**
     * 登记时间
     */
    private Date registerDate;

    /**
     * 登记人
     */
    private String registerPerson;

    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    public Integer getId() {
        return id;
    }

    /**
     * 序号
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 房间号
     */
    public Integer getRoomId() {
        return roomId;
    }

    /**
     * 房间号
     */
    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    /**
     * 抄表管理id
     */
    public Integer getMeterManagerId() {
        return meterManagerId;
    }

    /**
     * 抄表管理id
     */
    public void setMeterManagerId(Integer meterManagerId) {
        this.meterManagerId = meterManagerId;
    }

    /**
     * 新表号
     */
    public String getNewTableNumber() {
        return newTableNumber;
    }

    /**
     * 新表号
     */
    public void setNewTableNumber(String newTableNumber) {
        this.newTableNumber = newTableNumber;
    }

    /**
     * 新表起数
     */
    public Double getNewTableStart() {
        return newTableStart;
    }

    /**
     * 新表起数
     */
    public void setNewTableStart(Double newTableStart) {
        this.newTableStart = newTableStart;
    }

    /**
     * 安装人员
     */
    public String getInstallPerson() {
        return installPerson;
    }

    /**
     * 安装人员
     */
    public void setInstallPerson(String installPerson) {
        this.installPerson = installPerson;
    }

    /**
     * 登记时间
     */
    public Date getRegisterDate() {
        return registerDate;
    }

    /**
     * 登记时间
     */
    public void setRegisterDate(Date registerDate) {
        this.registerDate = registerDate;
    }

    /**
     * 登记人
     */
    public String getRegisterPerson() {
        return registerPerson;
    }

    /**
     * 登记人
     */
    public void setRegisterPerson(String registerPerson) {
        this.registerPerson = registerPerson;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TableChangeRecord other = (TableChangeRecord) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getRoomId() == null ? other.getRoomId() == null : this.getRoomId().equals(other.getRoomId()))
            && (this.getMeterManagerId() == null ? other.getMeterManagerId() == null : this.getMeterManagerId().equals(other.getMeterManagerId()))
            && (this.getNewTableNumber() == null ? other.getNewTableNumber() == null : this.getNewTableNumber().equals(other.getNewTableNumber()))
            && (this.getNewTableStart() == null ? other.getNewTableStart() == null : this.getNewTableStart().equals(other.getNewTableStart()))
            && (this.getInstallPerson() == null ? other.getInstallPerson() == null : this.getInstallPerson().equals(other.getInstallPerson()))
            && (this.getRegisterDate() == null ? other.getRegisterDate() == null : this.getRegisterDate().equals(other.getRegisterDate()))
            && (this.getRegisterPerson() == null ? other.getRegisterPerson() == null : this.getRegisterPerson().equals(other.getRegisterPerson()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getRoomId() == null) ? 0 : getRoomId().hashCode());
        result = prime * result + ((getMeterManagerId() == null) ? 0 : getMeterManagerId().hashCode());
        result = prime * result + ((getNewTableNumber() == null) ? 0 : getNewTableNumber().hashCode());
        result = prime * result + ((getNewTableStart() == null) ? 0 : getNewTableStart().hashCode());
        result = prime * result + ((getInstallPerson() == null) ? 0 : getInstallPerson().hashCode());
        result = prime * result + ((getRegisterDate() == null) ? 0 : getRegisterDate().hashCode());
        result = prime * result + ((getRegisterPerson() == null) ? 0 : getRegisterPerson().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", roomId=").append(roomId);
        sb.append(", meterManagerId=").append(meterManagerId);
        sb.append(", newTableNumber=").append(newTableNumber);
        sb.append(", newTableStart=").append(newTableStart);
        sb.append(", installPerson=").append(installPerson);
        sb.append(", registerDate=").append(registerDate);
        sb.append(", registerPerson=").append(registerPerson);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}